import Api from '../../http/Api';
import { tokenInterceptor } from '../Interceptors';
export class Service extends Api {
	constructor() {
		super();
		this.initTokenInstance = key => {
			return this.initSingle(
				key,
				{
					baseURL: `/api/${key}`
				},
				tokenInterceptor
			);
		};
		this.create();
	}
}
